package com.example.educationplatformbackend.service.Impl;

import com.example.educationplatformbackend.domian.home.Course;
import com.example.educationplatformbackend.domian.home.Coutsenew;
import com.example.educationplatformbackend.domian.home.Recommend;
import com.example.educationplatformbackend.mapper.HomeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeService implements com.example.educationplatformbackend.service.HomeServiceImpl {



    @Autowired
    HomeMapper homeMapper;
    @Override
    public List<String> HomepageCarousel() {
        List<String> CarouselList=List.of("http://localhost:8081/images/carousel/carousel1.png",
                "http://localhost:8081/images/carousel/carousel2.png","http://localhost:8081/images/carousel/carousel3.png",
                "http://localhost:8081/images/carousel/carousel4.png","http://localhost:8081/images/carousel/carousel5.png"
               );
        return CarouselList;
    }

    @Override
    public List<Recommend> recommend() {
        return homeMapper.recommend();
    }



    @Override
    public List<Coutsenew> coutsenew(String type) {
        return homeMapper.coutsenew(type);
    }


}
